package com.demarc.pesquisas.infraestrutura.persistencia;

import java.io.Serializable;
import java.util.List;

public class ResultadoPaginado<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	private final List<T> list;
	private final int rowCount;

	public ResultadoPaginado(List<T> list, int rowCount) {
		this.list = list;
		this.rowCount = rowCount;
	}

	public List<T> getList() {
		return list;
	}

	public int getRowCount() {
		return rowCount;
	}

	public boolean isEmpty() {
		return rowCount == 0;
	}
}
